package com.faselbaum.stalkme.utils;

import java.util.ArrayList;

import com.faselbaum.stalkme.models.BluetoothDeviceInfo;
import com.faselbaum.stalkme.models.ProfileInfo;

import android.app.Activity;

public class ProfileInfoBuilder
{
	private static ProfileInfoBuilder _instance = null;
	
	private ProfileInfoBuilder(){}
	
	// Singelton instance
	public static ProfileInfoBuilder getInstance()
	{
		if(_instance==null)
		{
			_instance = new ProfileInfoBuilder();
		}
		return _instance;
	}
	
	// returns a valid ProfileInfo related to the MAC-Address of the deviceInfo
	// returns null if no ProfileInfo for that MAC-Address is stored
	public ProfileInfo getInfo(BluetoothDeviceInfo deviceInfo, Activity activity)
	{
		String name = deviceInfo.getName();
		ProfileInfo retVal = new ProfileInfo();
		retVal.setFirstName(name);
		retVal.setBluetoothDeviceInfo(deviceInfo);
		return retVal;
	}
	
}
